[collapsed="true"]:not([id^="tabcontext-contexthistory-history"]) + [id^="tabcontext-contexthistory-separator"],
[hidden="true"]:not([id^="tabcontext-contexthistory-history"]) + [id^="tabcontext-contexthistory-separator"],
[id^="tabcontext-contexthistory-separator"]:first-child {
  display: none;
}

/* Menuitems in History context menu */
#context-contexthistory-history [checked="true"],
#tabcontext-contexthistory-history [checked="true"] {
  list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
  font-weight: bold;
}

/* Context History Options menuitem */
#toolsmenu-contexthistory-config,
#appmenu-contexthistory-config {
  list-style-image: url("contexthistory.png");
}

/* 'Contribute' button in options dialog */
button[dlgtype="extra2"] {
  -moz-appearance: none;
  color: #FFF;
  border: 1px solid #3A4EEE;
  border-radius: 3px;
  list-style-image: url("chrome://mozapps/skin/extensions/heart.png");
  background-color: #2F73EF;
  background-image: -moz-linear-gradient(rgba(251, 252, 253, 0.70),
                                         rgba(246, 247, 248, 0.27) 49%,
                                         rgba(231, 232, 233, 0.25) 51%,
                                         rgba(225, 226, 229, 0.1));
  background-image:      linear-gradient(rgba(251, 252, 253, 0.70),
                                         rgba(246, 247, 248, 0.27) 49%,
                                         rgba(231, 232, 233, 0.25) 51%,
                                         rgba(225, 226, 229, 0.1));
}
button[dlgtype="extra2"] .button-box { padding: 0 6px 1px 6px; }
button[dlgtype="extra2"] .button-icon { -moz-margin-end: 3px; }
button[dlgtype="extra2"]:not(:active):hover {
  border-color: #4271FF;
  background-color: #0459F7;
  -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 0 3.5px hsl(190, 90%, 80%);
       box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 0 3.5px hsl(190, 90%, 80%);
  -moz-transition: background-color .4s ease-in,
                   border-color .3s ease-in,
                   box-shadow .3s ease-in;
       transition: background-color .4s ease-in,
                   border-color .3s ease-in,
                   box-shadow .3s ease-in;
}
button[dlgtype="extra2"]:active:hover {
  background-color: #8FA1C1;
  border-color: rgba(0, 0, 0, 0.65) rgba(0, 0, 0, 0.55) rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 6.5px rgba(0, 0, 0, 0.4) inset,
                   0 0 2px rgba(0, 0, 0, 0.4) inset,
                   0 1px 0 rgba(255, 255, 255, 0.4);
       box-shadow: 0 0 6.5px rgba(0, 0, 0, 0.4) inset,
                   0 0 2px rgba(0, 0, 0, 0.4) inset,
                   0 1px 0 rgba(255, 255, 255, 0.4);
}
